import App from './App'
import './colorui/main.css'
import 'colorui/icon.css'
import http from './utils/http.js' 
// #ifndef VUE3
import Vue from 'vue'
// 全局挂载自定义组件
import uView from "uview-ui";
Vue.use(uView);
import ProItem from 'components/ProItem.vue'
Vue.component('Pro-item',ProItem)

import Nav from './components/nav.vue'
Vue.component('Nav',Nav)
// 添加http

Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App
})
Vue.use(http, app)
app.$mount()
// #endif

// // #ifdef VUE3
// import { createSSRApp } from 'vue'
// export function createApp() {
//   const app = createSSRApp(App)
//   return {
//     app
//   }
// }
// // #endif